<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>科鹏机电</title>
<head th:include="include :: header"></head>
<style>
	.table {
		line-height: 40px;
		font-size: 18px;
		margin-left: 64px;
	}
	.subm{
		text-align: center;
	}
</style>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<form class="form-horizontal m-t" id="signupForm">
						<div class="ibox-content">
							<input id="id" name="id" th:value="${project.id}"  type="hidden">
							<div class="form-group">
								<label class="col-sm-2 control-label">项目名称：</label>
								<div class="col-sm-4">
									<input id="name" name="name" class="form-control" type="text"  th:value="${project.name}" readonly>
								</div>
								<label class="col-sm-2 control-label">项目编号：</label>
								<div class="col-sm-4">
									<input id="itmNumber" name="itmNumber" class="form-control" type="text" th:value="${project.itmNumber}" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">项目类型：</label>
								<div class="col-sm-4">
									<select data-placeholder="--选择类型--" name="itmProTypeid" id="itmProTypeid"
											class="form-control" tabindex="2" required readonly>
										<option value="">--选择类型--</option>
										<option th:each="projecttype:${projecttypeList}" th:value="${projecttype.id}"
												th:text="${projecttype.name}" th:selected="${projecttype.id} == ${project.itmProTypeid}"></option>
									</select>
								</div>
								<label class="col-sm-2 control-label">项目负责人：</label>
								<div class="col-sm-4">
									<select data-placeholder="--选择负责人--" name="itmManagerId" id="itmManagerId"
											class="form-control" tabindex="2" required readonly>
										<option value="">--选择负责人--</option>
										<option th:each="user:${userList}" th:value="${user.userId}" th:text="${user.name}"
												th:selected="${project.itmManagerId} == ${user.userId}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">客户名称：</label>
								<div class="col-sm-4">
									<input id="custName" name="custName" class="form-control" type="text" th:value="${project.custName}" readonly>
								</div>
								<label class="col-sm-2 control-label">拟承接部位：</label>
								<div class="col-sm-4">
									<input id="itmDecSite" name="itmDecSite" class="form-control" type="text" th:value="${project.itmDecSite}" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">项目说明：</label>
								<div class="col-sm-10">
									<textarea id="itmRemark" name="itmRemark" class="form-control" th:text="${project.itmRemark}" readonly></textarea>
								</div>
							</div>
					</div>
					<div class="ibox-content">
						<div class="table">维保时间</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">开始时间：</label>
							<div class="col-sm-4">
								<!--<input id="startMaintenTime" name="startMaintenTime" class="form-control" type="text">-->
								<input type="text" class="laydate-icon layer-date form-control" id="startMaintenTime" name="startMaintenTime"
									   th:value="${project.startMaintenTime}==null?null:${#dates.format(project.startMaintenTime,'yyyy-MM-dd')}"
									   placeholder="请选择维保开始时间"
									   onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" style="background-color: #fff;" readonly="readonly"/>
							</div>
							<label class="col-sm-2 control-label">结束时间：</label>
							<div class="col-sm-4">
								<!--<input id="endMaintenTime" name="endMaintenTime" class="form-control" type="text">-->
								<input type="text" class="laydate-icon layer-date form-control" id="endMaintenTime" name="endMaintenTime"
									   th:value="${project.endMaintenTime}==null?null:${#dates.format(project.endMaintenTime,'yyyy-MM-dd')}"
									   placeholder="请选择维保结束时间"
									   onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" style="background-color: #fff;" readonly="readonly"/>
							</div>
						</div>
						<div class="form-group subm">
							<button type="submit" class="btn btn-primary">保存</button>
						</div>
					</div>
					</form>
					</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/itm/project/mainten.js"></script>
	<script type="text/javascript" src="/js/plugins/iCheck/icheck.min.js"></script>
	<script type="text/javascript" src="/js/plugins/cropper/cropper.min.js"></script>
	<script type="text/javascript" src="/js/plugins/layer/laydate/laydate.js" ></script>
	<script type="text/javascript" src="/js/plugins/distpicker/distpicker.data.min.js"></script>
	<script type="text/javascript" src="/js/plugins/distpicker/distpicker.min.js"></script>
	<script type="text/javascript" src="/js/appjs/sys/user/gg-kpjd.js"></script>
</body>
</html>
